package com.lnb.rpcs.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenFeignLoggerConfiguration {

    @Bean
    public Logger.Level openFeignLoggerLevel() {
        /**
         *  NONE:无记录，默认的
         *  BASIC:只记录请求方法和url及响应状态代码和执行时间
         *  HEADERS:只记录基本信息及请求和响应头
         *  FULL:记录请求和响应的头文件，正文和元数据，信息最全
         */
        return Logger.Level.BASIC;
    }

}
